﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyAspx.EasyFramework.EntityFramework;

namespace MyAspx.EasyFramework.DAL3
{
   public class DownUrlDAL
    {
        commyaspxdbEntities _myaspxentities = new commyaspxdbEntities();
        public int AddNewCodeDownInfo(my_downurl _myDl)
        {
            try
            {

           
            //[tagname],[tagcreatedate],[fileinfoid]
            _myaspxentities.my_downurl.Add(new my_downurl()
            {
               downfileid = _myDl.downfileid,
               downsyseul = _myDl.downsyseul,
               downurl = _myDl.downurl,


            });
                _myaspxentities.SaveChanges();
                var a = _myaspxentities.GetValidationErrors();
            }
            catch (Exception ex)
            {
               var a = _myaspxentities.GetValidationErrors();
                throw new Exception(ex.Message);
            }
            return 1;
        }
    }
}
